<div class="usl">
    <div class="btns">
	<eq name="Think.session.ytata.uid" value=""><!--未登录 -->
	<input name="" type="button" value="加关注" class="btn_green btn_inline_medium btn_border J_user_login">
	<input name="" type="button" value="发私信" class="btn_white btn_inline_medium btn_border J_user_login">
	<else/><!--已登录 -->
		<eq name="u.user.is_follow" value="1">
		<input name="" type="button" value="已关注" uid='{$u.user.uid}' class="btn_green btn_inline_medium btn_border J_follow">
		<else/>
		<input name="" type="button" value="加关注" uid='{$u.user.uid}' class="btn_green btn_inline_medium btn_border J_follow">
		</eq>
	<input name="" type="button" value="发私信" uid='{$u.user.uid}' class="btn_white btn_inline_medium btn_border J_pms">
	</eq>
	</div>
	
    <div class="sta">
	  <div class="stali">关注<br>{$u.user.follow}人</div>
	  <div class="stali">粉丝<br><span id="J_fans_count">{$u.user.fans}</span>人</div>
	  <div class="clear"></div>
	</div>

	
    <div class="nav">
	  <a class="nli  <eq name="Think.get.type" value="">select</eq>" href="{:RU('u/view',array('uid'=>$_GET['uid']))}">TA的主页</a>
	  <a class="nli <eq name="Think.get.type" value="question">select</eq>" href="{:RU('u/lists',array('uid'=>$_GET['uid'],'type'=>'question'))}">TA的提问<div class="count">{$u.user.count_question}</div></a>
	  <a class="nli <eq name="Think.get.type" value="answer">select</eq>" href="{:RU('u/lists',array('uid'=>$_GET['uid'],'type'=>'answer'))}">TA的回答<div class="count">{$u.user.count_answer}</div></a>
	  <a class="nli <eq name="Think.get.type" value="article">select</eq>" href="{:RU('u/lists',array('uid'=>$_GET['uid'],'type'=>'article'))}">TA的文章<div class="count">{$u.user.count_article}</div></a>
			<a class="nli <eq name="Think.get.type" value="bbs">select</eq>" href="{:RU('u/lists',array('uid'=>$_GET['uid'],'type'=>'bbs'))}">TA的主题<div class="count">{$u.user.count_bbs}</div></a>
	</div>
	
	<div class="nav">
	  <a class="nli <eq name="Think.get.type" value="track">select</eq>" href="{:RU('u/lists',array('uid'=>$_GET['uid'],'type'=>'track'))}">TA的动态<div class="count">{$u.user.count_track}</div></a>
	  <a class="nli <eq name="Think.get.type" value="exp">select</eq>" href="{:RU('u/lists',array('uid'=>$_GET['uid'],'type'=>'exp'))}">TA的经验<div class="count">{$u.user.exp}</div></a>
	  <a class="nli <eq name="Think.get.type" value="fans">select</eq>" href="{:RU('u/lists',array('uid'=>$_GET['uid'],'type'=>'fans'))}">TA的粉丝<div class="count">{$u.user.fans}</div></a>
 
	   
	</div>
	
	
  </div>

<script>
    //发私信
    $('.J_pms').live('click',function() {
        btn=$(this);
        uid=btn.attr('uid');
        $.getJSON(ajaxURL, { act: "ajax_pms_send",uid:uid}, function(json){
            if (json.status==0){
                disapperTooltip("remind", json.content);
            }else if (json.status==1){

                var pmsDialog = $(this).dialog({
                    title: '发私信',
                    content:json.content,
                    footer: true,
                    header: true,
                    border: true,
                    innerPadding:true,
                    backdrop:true,
                    yes: function() {
                        msg=$('textarea[id=J_send_msg]').val();
                        to_uid='{$u.user.uid}';
                        $.getJSON(ajaxURL, { act: "ajax_pms_save",msg:msg,to_uid:to_uid},function(json){
                            if (json.status==0){
                                disapperTooltip("remind", json.content);
                            }else if (json.status==1){
                                disapperTooltip("success",json.content);
                                $('.modal').remove();
                                $('.modal_backdrop').remove();
                            }else{
                                disapperTooltip("remind","操作失败，未知错误");
                            }
                        });



                    }
                });
                pmsDialog.setCloseDialog(false);
            }else{
                disapperTooltip("remind","未知错误");
            }
        });
    });
</script>